package com.candy.service.impl;

import com.candy.dao.AccountDao;
import com.candy.dao.impl.AccountDaoImpl;
import com.candy.service.AccountService;

public class AccountServiceImpl implements AccountService {
    private AccountDao accountDao=new AccountDaoImpl();

    public AccountServiceImpl() {
        System.out.println("调用了无参构造函数");
    }

    @Override
    public void save() {
        accountDao.save();
    }

    public void start(){
        System.out.println("初始化调用的我--------start");
    }
    public void end(){
        System.out.println("对象销毁时调用的我--------end");
    }
}
